#ifndef FUNCTION
	#define FUNCTION
	#include <string>
	
	struct Function{			
	    Function ( std::string str );	    
	    Function ( Function * f );
	    Function ();
		virtual double value ( double x );
		bool solve( double a, double b, double eps, double & result );
		void integrate(double a, double b, double h, double & result);
	private:
		std::string f_;
	};

#endif
